<template>
    <a-drawer
        :destroyOnClose="true"
        placement="right"
        :closable="true"
        :visible="visible"
        :maskClosable="true"
        :width="width"
        :title="title"
        @close="cancel">
        <a-spin :spinning="confirmLoading">
           
            <!-- 这里放自己的组件 -->
           
           
        </a-spin>
       
        <div style="height:30px;"></div>
        <div class="drawer-bootom-button">
            <a-button shape="round" @click="cancel" style="margin-right: .8rem">取消</a-button>
            <a-button  shape="round" @click="ok" type="primary" >提交</a-button>
        </div>

    </a-drawer>
    
</template>

<script>
import LForm from '@/components/lt/form/LForm'
import pick from 'lodash.pick'
import request from '@/utils/request'
import moment from 'moment'
import LTable from '@/components/lt/LTable'
import {SysMixin} from '@/mixins/SysMixin'
import defaultSettings from '@/config/defaultSettings'


export default {
    name:'arrivalForm',
    components:{LForm,LTable},
    mixins:[SysMixin],
   
    data(){
        return{
            width:800,
            defaultSettings,
            moment,
            visible:false,
            model:{},
            confirmLoading:false,
            title:'标题',
            
  
        }
    },
    created(){
    },
    computed:{
       
    },
    watch:{
        
    },
    methods:{
        edit (record) {
            this.visible = true
            this.model = Object.assign({}, record)
            this.$nextTick(() => {
               //自己业务
    
            })
          
        },
       
       
        
        ok(){
            this.close()
            this.$emit('handleOk');
        },
        cancel(){
            this.visible=false
            this.$emit('handleCancel');
        },
        close () {
            this.$emit('close');
            this.visible = false;
        },
        /**
         * 获取form对象
         */
        getForm(){
            return this.$refs.LForm.form
        },
        changeEventHandler(changeItem){
            this.$emit('changeEventHandler',changeItem);
        },
        clickEventHandler(field,form){
            this.$emit('clickEventHandler',field,form);
        },
    }

}
</script>



<style  scoped>
  .drawer-bootom-button {
    position: absolute;
    z-index: 999999;
    bottom: 0;
    width: 100%;
    /* border-top: 1px solid #e8e8e8; */
    padding: 10px 16px;
    text-align: right;
    left: 0;
    background: #fff;
    border-radius: 0 0 2px 2px;
  }

</style>